#ifndef INIREADER_H
#define INIREADER_H

#include <string>
#include <vector>
#include <unordered_map>

namespace iniReader {

class ConfigReader {
public:
  explicit ConfigReader();
  int ReadFile(const std::string & filename);
  std::string GetItem(const std::string & section, const std::string & tag) const;
  std::vector<std::string> GetSections() const;
  std::vector<std::string> GetTags(const std::string & section) const;
  ~ConfigReader();
private:
  std::unordered_map<std::string, std::unordered_map<std::string, std::string>> conf_;
};

} // namespace iniReader


#endif